<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sp"  uri="http://www.shlianjing.com/separatePage/tag"%>

<nav style="width:100%; text-align:center;">
	<ul class="pagination">
<sp:mySeparatePage data="${pageData}" urlVar="url" pageQueryVar="page" pageVar="page" currentPageVar="currentPage" maxDisplay="5">
	<sp:myFirst>
		<c:if test="${page==currentPage}">
			<li class="disabled"> <a >首页</a> </li>
		</c:if>
		<c:if test="${page!=currentPage}">
			<li> <a href="<c:url value='/'/>${url}">首页</a> </li>
		</c:if>
	</sp:myFirst>
	<sp:myPrev>
		<c:if test="${page==currentPage}">
			<li class="disabled">
				<a aria-label="Previous"> <span aria-hidden="true">&laquo;</span></a>
			</li>
		</c:if>
		<c:if test="${page!=currentPage}">
			<li>
				<a href="<c:url value='/'/>${url}" aria-label="Previous"> <span aria-hidden="true">&laquo;</span></a>
			</li>
		</c:if>
	</sp:myPrev>
	<sp:myItems>
		<c:if test="${page==currentPage}">
			<li class="active">
				<a >${page}<span class="sr-only">(current)</span></a>
			</li>
		</c:if>
		<c:if test="${page!=currentPage}">
			<li>
				<a href="<c:url value='/'/>${url}" >${page}<span class="sr-only">(current)</span></a>
			</li>
		</c:if>
	</sp:myItems>
	<sp:myNext>
		<c:if test="${page==currentPage}">
			<li class="disabled">
				<a aria-label="Next"><span aria-hidden="true">&raquo;</span></a>
			</li>
		</c:if>
		<c:if test="${page!=currentPage}">
			<li>
				<a href="<c:url value='/'/>${url}" aria-label="Next"><span aria-hidden="true">&raquo;</span></a>
			</li>
		</c:if>
	</sp:myNext>
	<sp:myLast>
		<c:if test="${page==currentPage}">
			<li class="disabled"> <a>尾页</a> </li>
		</c:if>
		<c:if test="${page!=currentPage}">
			<li> <a href="<c:url value='/'/>${url}">尾页</a> </li>
		</c:if>
	</sp:myLast>
</sp:mySeparatePage>
	</ul>
</nav>